package cn.com.coding.system.dao;

import cn.com.coding.system.domin.SysUserEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author mxz
 */
@Mapper
public interface SysUserDao extends BaseMapper<SysUserEntity> {

    /**
     * 获取菜单资源权限
     *
     * @param userPid
     * @return
     */
    List<String> getNavMenuPids(@Param("userPid") String userPid);

    SysUserEntity selectByUserNameAndPassWord(@Param("username") String username, @Param("password") String password);

    /**
     * @param menuPid
     */
    List<SysUserEntity> listByMenuPid(@Param("menuPid") String menuPid);
}
